<%--
  Created by IntelliJ IDEA.
  User: computer
  Date: 2021/6/15
  Time: 10:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%-- 项目信息 --%>
<h1 align="center" style="color: #0075c7">已管理项目</h1>
<div class="proma">
    <div class="right">
        <table class="tab1" cellspacing="0" cellpadding="" style="border: 1px solid;">
            <!-- 如果项目的状态是  废弃   则不显示 -->
            <tr>
                <td>项目id：${pro.proId}</td>
                <td>项目名：${pro.proName}</td>
                <td rowspan="3">客户：${pro.customer}</td>
            </tr>
            <tr>
                <td>立项时间：${pro.beginDate}</td>
                <td>结项时间：${pro.endDate}</td>
            </tr>
            <tr>
                <td colspan="2">备注：${pro.remark}</td>
            </tr>
        </table>
    </div>
</div>

<%-- 该项目下人员 --%>
<div class="proma">
    <table class="tab1" cellspacing="0" cellpadding="" style="border: 1px solid;">
        <tr>
            <th>人员id</th>
            <th>姓名</th>
            <th>账号</th>
            <th>手机号</th>
            <th>email</th>
            <th>部门</th>
            <th>所属公司</th>
            <th>角色</th>
        </tr>
        <c:forEach items="${proUsers}" var="user">
            <tr>
                <td>${user.id}</td>
                <td>${user.name}</td>
                <td>${user.userName}</td>
                <td>${user.phone}</td>
                <td>${user.email}</td>
                <td>${user.department}</td>
                <td>${user.company}</td>
                <c:choose>
                    <c:when test="${user.roleid=='1'}">
                        <td>管理员</td>
                    </c:when>
                    <c:when test="${user.roleid=='2'}">
                        <td>项目经理</td>
                    </c:when>
                    <c:otherwise>
                        <td>普通员工</td>
                    </c:otherwise>
                </c:choose>
            </tr>
        </c:forEach>
    </table>
    <div style="margin-top: 15px;margin-bottom: 10px;color: #676a6c">
        显示第 1 到第 ${allUsers.size()} 条记录，总共 ${allUsers.size()} 条记录
    </div>

</div>